package cn.sf.sufinguserconsumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
//放到注册中心的注解
@EnableDiscoveryClient
//让service的@FeignClient(value = "")注解有效
@EnableFeignClients
//hystrix 注解
@EnableCircuitBreaker
@ComponentScan("cn.sf")
public class SufingUserConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SufingUserConsumerApplication.class, args);
    }

}
